package com.example.vo;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class RoleVo extends BaseVo {

    private static final long serialVersionUID = 2189615689147309239L;

    /**
     * 角色名称
     */
    private String name;
    /**
     * 备注
     */
    private String description;

    @Override
    public List<QueryParam> buildQueryParams() {
        List<QueryParam> queryParams = new ArrayList<>();
        queryParams.add(new QueryParam("name", QueryParam.Operator.LIKE, name));
        return queryParams;
    }
}
